﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERP.Domain.Products
{
    /// <summary>
    /// 物料结构表
    /// </summary>
    [Table("materialstructure")]
    public class MaterialStructure : Audit
    {
        /// <summary>
        /// 自增主键ID
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 物料结构编号（GUID）
        /// </summary>
        public Guid MaterialStructureNumber { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 父级产品编号
        /// </summary>
        public Guid? ParentProductNumber { get; set; }

        /// <summary>
        /// 产品物料名称
        /// </summary>
        public string ProductMaterialName { get; set; }

        /// <summary>
        /// 子级编号
        /// </summary>
        public Guid? ChildNumber { get; set; }

        /// <summary>
        /// Bom编号
        /// </summary>
        public Guid BomNumber { get; set; }

        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool? IsDelete { get; set; } = false;

    }
}
